﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetBay.Core.BusinessEntities
{
    public class FolderTypeRights
    {

        public long Identifier { get; set; }

        public FolderType FolderType { get; set; }

        public Organization Organization { get; set; }

        public bool CanAnnotate { get; set; }

        public bool CanDownload { get; set; }

        public bool CanPrint { get; set; }

        public bool CanScann { get; set; }

        public bool CanScanExtended { get; set; }

        public bool CanReorganize { get; set; }

        public bool IsAdministrator { get; set; }

        public bool CanSendEmail { get; set; }

        public bool CanConsult { get; set; }

        public bool CanConsultExtended { get; set; }

        public bool CanDelete { get; set; }

        public bool CanTrash { get; set; }


        public FolderTypeRights()
        {
            FolderType = new FolderType();
            Organization = new Organization();
        }

        public bool IsValid()
        {
            if((FolderType != null && FolderType.Identifier > 0) && (Organization !=null && Organization.Identifier>0))
            {
                return true;
            }
            return false;
        }
    }

}
